package com.ruoyi.xp.seller.task;

import com.ruoyi.xp.seller.service.IXpSellerItemInfoService;
import com.ruoyi.xp.seller.service.impl.XpSellerItemInfoServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * @author chendx
 */
@Component("SellerTask")
public class SellerTask {

    private static final Logger log = LoggerFactory.getLogger(SellerTask.class);

    @Autowired
    private IXpSellerItemInfoService xpSellerItemInfoService;

    public void getSellerItemInfo() throws IOException, InterruptedException {

        log.info("SellerTask.getSellerItemInfo start");

        xpSellerItemInfoService.getSellerRecommend();

        log.info("SellerTask.getSellerItemInfo end");
    }

}
